#include <QtGui/QGuiApplication>

#include "app.h"
#include "utils/log.h"
#include "utils/conf.h"
#include "coletorpcp.h"

int main(int argc, char *argv[])
{
    Conf m_conf(CONF_FILE_NAME, 0);

    if(m_conf.get_plataforma().compare("true",Qt::CaseInsensitive)) {
        setLogLevel(DEBUG_L);
    }

    LOGD("BEGIN");
    QGuiApplication qapp(argc, argv);

    APP app;
    int result = app.exec(qapp);

    LOGD("END");
    return result;
}
